﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">

<head>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <title>hCalendar 3 - ISO duration format test</title>
  
  <!-- This will be replace with one CSS file and one JavaScipt file -->
  <link rel="stylesheet" href="../css/uftestsuite.css" type="text/css" />
  <link rel="stylesheet" href="../../testrunner/css/testrunner.css" type="text/css" />
  
  <script type="text/javascript" src="../../testrunner/javascript/prototype-1.6.0.2.js"></script> 
  <script type="text/javascript" src="../../testrunner/javascript/beautify.js"></script> 
  <script type="text/javascript" src="../../testrunner/javascript/sumo/microformat.js"></script>
  <script type="application/javascript;version=1.7" src="http://svn.mozilla.org/labs/operator/chrome/content/Microformats/Microformats.js"></script>
  <script type="text/javascript" src="../../testrunner/javascript/shiv/microformats-shiv.js"></script>
  <script type="text/javascript" src="../../testrunner/javascript/shiv/microformats-definition.js"></script>  
  <script type="text/javascript" src="../../testrunner/javascript/testrunner.js"></script>
   
</head>
<body>
    
    
    <div class="test-fixture">
    
    <p>
    <a href="../"><img border="0" id="testsuite-image" alt="Microformats test suite" src="../images/testsuite.gif" /></a><br />
    </p>
    
    <h1 class="summary">hCalendar 3 - ISO duration format test</h1>
    <p class="description">This page was design to comprehensively test the
	<a href="http://en.wikipedia.org/wiki/ISO_8601">ISO duration</a> format. 
	More information on <a href="../documentation/iso-duration.htm">duration 
	representations</a> in microformats </p>
    <p>From: <a href="default.htm"><span class="format">hCalendar</span> test suite 1.0</a></p>
    <p class="author vcard">
        Author: <a class="url fn" href="http://www.glennjones.net/">Glenn Jones</a> 
    </p>
    
    <input id="unittestbutton" type="button" onclick="microformatsTestRunner.displayTestOptionForm()" value="Unit Test Runner"/>

      
    <p>Tests:</p>
    <table id="assetTable" cellpadding="0" cellspacing="0">
    <thead>
        <tr>
            <th>Test</th>
            <th>Result</th>
            <th>Comment</th>
        </tr>
    </thead>
    <tbody>
        <tr class="assert">
            <td class="test">vevent[0].duration</td>
            <td class="result">IsEqualTo("P9M")</td>
            <td class="comment">The duration value</td>
        </tr>
                <tr class="assert">
            <td class="test">vevent[1].duration</td>
            <td class="result">IsEqualTo("P1Y2M")</td>
            <td class="comment">The duration value</td>
        </tr>

        <tr class="assert">
            <td class="test">vevent[2].duration</td>
            <td class="result">IsEqualTo("P1Y2M10D")</td>
            <td class="comment">The duration value</td>
        </tr>

        <tr class="assert">
            <td class="test">vevent[3].duration</td>
            <td class="result">IsEqualTo("P1Y2M10DT20H")</td>
            <td class="comment">The duration value</td>
        </tr>

        <tr class="assert">
            <td class="test">vevent[4].duration</td>
            <td class="result">IsEqualTo("P1Y2M10DT20H30M")</td>
            <td class="comment">The duration value</td>
        </tr>

        <tr class="assert">
            <td class="test">vevent[5].duration</td>
            <td class="result">IsEqualTo("P1Y2M10DT20H30M30S")</td>
            <td class="comment">The duration value</td>
        </tr>

        <tr class="assert">
            <td class="test">vevent[6].duration</td>
            <td class="result">IsEqualTo("P1Y2M10DT20H30M30.5S")</td>
            <td class="comment">The duration value</td>
        </tr>

        <tr class="assert">
            <td class="test">vevent[7].duration</td>
            <td class="result">IsEqualTo("P1Y2M10DT20.5H")</td>
            <td class="comment">The duration value</td>
        </tr>

        <tr class="assert">
            <td class="test">vevent[8].duration</td>
            <td class="result">IsEqualTo("P110D")</td>
            <td class="comment">The duration value</td>
        </tr>

        <tr class="assert">
            <td class="test">vevent[9].duration</td>
            <td class="result">IsEqualTo("PT30M")</td>
            <td class="comment">The duration value</td>
        </tr>

        <tr class="assert">
            <td class="test">vevent[10].duration</td>
            <td class="result">IsEqualTo("P0001-02-10")</td>
            <td class="comment">The duration value</td>
        </tr>

        <tr class="assert">
            <td class="test">vevent[11].duration</td>
            <td class="result">IsEqualTo("P0001-02-10T14:30:30")</td>
            <td class="comment">The duration value</td>
        </tr>

         </tbody>
    </table> 
    
    
    <p>History:</p>
    
    <ul>
    <li class="history vevent">
        <span class="summary">Created</span>: <abbr class="dtstart" title="2008-06-02">2 June 2008</abbr> 
        <span class="description">by Glenn Jones</span>
    </li>
    </ul>
    
    
    
    </div>
  
    <div id="uf">
    
    	<!-- This may not be the best semantic use of HTML element -->
    	
    	<!-- 0 -->
		<div class="vevent">
			<h2 class="summary">Last holiday</h2>
			<div>Location: <span class="location" >Wales</span></div>
			<div>
				<abbr class="dtstart" title="2007-09-08">8 September</abbr> - for 
				<abbr class="duration" title="P9M">9 months</abbr>
			</div>
		</div>
		
		<!-- 1 -->
		<div class="vevent">
			<h2 class="summary">Last holiday</h2>
			<div>Location: <span class="location" >Wales</span></div>
			<div>
				<abbr class="dtstart" title="2007-09-08">8 September</abbr> - for 
				<abbr class="duration" title="P1Y2M">1 year and 2 months</abbr>
			</div>
		</div>
		
		<!-- 2 -->
		<div class="vevent">
			<h2 class="summary">Last holiday</h2>
			<div>Location: <span class="location" >Wales</span></div>
			<div>
				<abbr class="dtstart" title="2007-09-08">8 September</abbr> - for 
				<abbr class="duration" title="P1Y2M10D">1 year ,2 months and 10 days</abbr>
			</div>
		</div>
		
		
		<!-- 3 -->
		<div class="vevent">
			<h2 class="summary">Last holiday</h2>
			<div>Location: <span class="location" >Wales</span></div>
			<div>
				<abbr class="dtstart" title="2007-09-08">8 September</abbr> - for 
				<abbr class="duration" title="P1Y2M10DT20H">1 year, 2 months, 10 days and 20 hours</abbr>
			</div>
		</div>

		<!-- 4 -->
		<div class="vevent">
			<h2 class="summary">Last holiday</h2>
			<div>Location: <span class="location" >Wales</span></div>
			<div>
				<abbr class="dtstart" title="2007-09-08">8 September</abbr> - for 
				<abbr class="duration" title="P1Y2M10DT20H30M">1 year, 2 months, 10 days, 20 hours and 30 min</abbr>
			</div>
		</div>

		<!-- 5 -->
		<div class="vevent">
			<h2 class="summary">Last holiday</h2>
			<div>Location: <span class="location" >Wales</span></div>
			<div>
				<abbr class="dtstart" title="2007-09-08">8 September</abbr> - for 
				<abbr class="duration" title="P1Y2M10DT20H30M30S">1 year, 2 months, 10 days, 20 hours, 30 min and 30 sec</abbr>
			</div>
		</div>

		<!-- 6 -->
		<div class="vevent">
			<h2 class="summary">Last holiday</h2>
			<div>Location: <span class="location" >Wales</span></div>
			<div>
				<abbr class="dtstart" title="2007-09-08">8 September</abbr> - for 
				<abbr class="duration" title="P1Y2M10DT20H30M30.5S">1 year, 2 months, 10 days, 20 hours, 30 min and 30.5 sec</abbr>
			</div>
		</div>
		
		<!-- 7 -->
		<div class="vevent">
			<h2 class="summary">Last holiday</h2>
			<div>Location: <span class="location" >Wales</span></div>
			<div>
				<abbr class="dtstart" title="2007-09-08">8 September</abbr> - for 
				<abbr class="duration" title="P1Y2M10DT20.5H">1 year, 2 months, 10 days, 20.5 hours</abbr>
			</div>
		</div>
		
		<!-- 8 -->
		<div class="vevent">
			<h2 class="summary">Last holiday</h2>
			<div>Location: <span class="location" >Wales</span></div>
			<div>
				<abbr class="dtstart" title="2007-09-08">8 September</abbr> - for 
				<abbr class="duration" title="P110D">110 days</abbr>
			</div>
		</div>
		
		<!-- 9 -->
		<div class="vevent">
			<h2 class="summary">Last holiday</h2>
			<div>Location: <span class="location" >Wales</span></div>
			<div>
				<abbr class="dtstart" title="2007-09-08">8 September</abbr> - for 
				<abbr class="duration" title="PT30M">30 min</abbr>
			</div>
		</div>
		
		<!-- 10 -->
		<div class="vevent">
			<h2 class="summary">Last holiday</h2>
			<div>Location: <span class="location" >Wales</span></div>
			<div>
				<abbr class="dtstart" title="2007-09-08">8 September</abbr> - for 
				<abbr class="duration" title="P0001-02-10">1 year, 2 months and 10 days</abbr>
			</div>
		</div>
		
		<!-- 11 -->
		<div class="vevent">
			<h2 class="summary">Last holiday</h2>
			<div>Location: <span class="location" >Wales</span></div>
			<div>
				<abbr class="dtstart" title="2007-09-08">8 September</abbr> - for 
				<abbr class="duration" title="P0001-02-10T14:30:30">1 year, 2 months, 10 days, 14 hours, 30 min and 30 sec</abbr>
			</div>
		</div>







    
    </div>
    
    <p>
        <a rel="license" href="../license.txt">Some rights reserved</a>
    </p>
      
</body>

</html>